/**
  ******************************************************************************
  * @file    app_Load.h
  * @author  Feirui_Joe
  * @version V0.1
  * @date    07/26/2010
  * @brief   Outputs Driver
  ******************************************************************************
  * @copy
  *
  * <h2><center>&copy; COPYRIGHT 2010 Feirui</center></h2>
  */ 



/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef  __APP_LOAD_H__
#define  __APP_LOAD_H__


#ifdef __cplusplus
 extern "C" {
#endif


/**
  * @brief  INCLUDE FILES.
  */


/**
  * @brief GLOBALS RAM definition
  */
#ifdef   APP_GLOBALS_LOAD
#define  APP_EXT_LOAD
#else
#define  APP_EXT_LOAD  extern
#endif

/* StateUpdIn OS_Flags config bits */
#define OSLoadFlags_SwitchRequest                  ((OS_FLAGS)DEF_BIT_00)
#define OSLoadFlags_SwitchTiming                   ((OS_FLAGS)DEF_BIT_01)
#define OSLoadFlags_Reserve02                      ((OS_FLAGS)DEF_BIT_02)
#define OSLoadFlags_Reserve03                      ((OS_FLAGS)DEF_BIT_03)
#define OSLoadFlags_Reserve04                      ((OS_FLAGS)DEF_BIT_04)
#define OSLoadFlags_Reserve05                      ((OS_FLAGS)DEF_BIT_05)
#define OSLoadFlags_Reserve06                      ((OS_FLAGS)DEF_BIT_06)
#define OSLoadFlags_Reserve07                      ((OS_FLAGS)DEF_BIT_07)
#define OSLoadFlags_CancleTsfer                    ((OS_FLAGS)DEF_BIT_08)
#define OSLoadFlags_Reserve09                      ((OS_FLAGS)DEF_BIT_09)
#define OSLoadFlags_Reserve10                      ((OS_FLAGS)DEF_BIT_10)
#define OSLoadFlags_Reserve11                      ((OS_FLAGS)DEF_BIT_11)
#define OSLoadFlags_Reserve12                      ((OS_FLAGS)DEF_BIT_12)
#define OSLoadFlags_Reserve13                      ((OS_FLAGS)DEF_BIT_13)
#define OSLoadFlags_Reserve14                      ((OS_FLAGS)DEF_BIT_14)
#define OSLoadFlags_Reserve15                      ((OS_FLAGS)DEF_BIT_15)
#define OSLoadFlags_ALL                            (OSLoadFlags_SwitchRequest|OSLoadFlags_SwitchTiming)
#define OSLoadFlags_DefaultValue                   ((OS_FLAGS)    0x0000)


#define LoadOutRequestBit_Workflow                 DEF_BIT_00

#define TsferLoadSta_CancleAction                  0
#define TsferLoadSta_SuccessNoDelay                1
#define TsferLoadSta_SuccessDelay                  2

#define ATSLoadingTimingFreq                       10      /* 10HZ */


APP_EXT_LOAD void PORGlobalRAMReset_LOAD(void);
APP_EXT_LOAD void LoadingPulseTimerHandle(void);
APP_EXT_LOAD void SetLoadingTranferCancelAction(void);

#ifdef __cplusplus
}
#endif


#endif   /*  __APP_LOAD_H__  */

/******************* (C) COPYRIGHT 2010 Feirui *****END OF FILE****/